home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 53 / IOPROG_53.ISO / soft / c++ / xceedbkp.exe / Recovery Wizard / Sources / frmTwo.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1999-09-02  |  5.7 KB  |  181 lines

  1. VERSION 5.00
  2. Object = "{6B7E6392-850A-101B-AFC0-4210102A8DA7}#1.3#0"; "COMCTL32.OCX"
  3. Begin VB.Form frmTwo 
  4.    BorderStyle     =   3  'Fixed Dialog
  5.    Caption         =   "Xceed Recovery Wizard"
  6.    ClientHeight    =   3060
  7.    ClientLeft      =   45
  8.    ClientTop       =   330
  9.    ClientWidth     =   4425
  10.    Icon            =   "frmTwo.frx":0000
  11.    LinkTopic       =   "Form1"
  12.    MaxButton       =   0   'False
  13.    MinButton       =   0   'False
  14.    ScaleHeight     =   3060
  15.    ScaleMode       =   0  'User
  16.    ScaleWidth      =   7672.834
  17.    ShowInTaskbar   =   0   'False
  18.    StartUpPosition =   1  'CenterOwner
  19.    Begin ComctlLib.ProgressBar stbProgress 
  20.       Height          =   255
  21.       Left            =   240
  22.       TabIndex        =   9
  23.       Top             =   2040
  24.       Width           =   3975
  25.       _ExtentX        =   7011
  26.       _ExtentY        =   450
  27.       _Version        =   327682
  28.       Appearance      =   1
  29.    End
  30.    Begin VB.CommandButton cmdChooseCatFolder 
  31.       Caption         =   "..."
  32.       Height          =   255
  33.       Left            =   3840
  34.       TabIndex        =   4
  35.       Top             =   1440
  36.       Width           =   375
  37.    End
  38.    Begin VB.CommandButton cmdBrowseBackupFolder 
  39.       Caption         =   "..."
  40.       Height          =   255
  41.       Left            =   3840
  42.       TabIndex        =   2
  43.       Top             =   720
  44.       Width           =   375
  45.    End
  46.    Begin VB.CommandButton cmdCreate 
  47.       Caption         =   "Recreate "
  48.       Height          =   375
  49.       Left            =   1560
  50.       TabIndex        =   5
  51.       Top             =   2520
  52.       Width           =   1215
  53.    End
  54.    Begin VB.TextBox txtCreateNewCatalogsPath 
  55.       Height          =   285
  56.       Left            =   240
  57.       TabIndex        =   3
  58.       Top             =   1440
  59.       Width           =   3495
  60.    End
  61.    Begin VB.CommandButton cmdCancel 
  62.       Caption         =   "Cancel"
  63.       Height          =   375
  64.       Left            =   3000
  65.       TabIndex        =   6
  66.       Top             =   2520
  67.       Width           =   1215
  68.    End
  69.    Begin VB.TextBox txtFindBackup 
  70.       Height          =   285
  71.       Left            =   240
  72.       TabIndex        =   1
  73.       Top             =   720
  74.       Width           =   3495
  75.    End
  76.    Begin VB.Label Label2 
  77.       Caption         =   "Where would you like to recreate the catalogs to?"
  78.       Height          =   255
  79.       Left            =   240
  80.       TabIndex        =   8
  81.       Top             =   1200
  82.       Width           =   3735
  83.    End
  84.    Begin VB.Label Label1 
  85.       Caption         =   "Where are the backup files located?"
  86.       Height          =   255
  87.       Left            =   240
  88.       TabIndex        =   7
  89.       Top             =   480
  90.       Width           =   2775
  91.    End
  92.    Begin VB.Label lblTwo 
  93.       Caption         =   "Catalog recreation step"
  94.       BeginProperty Font 
  95.          Name            =   "MS Sans Serif"
  96.          Size            =   8.25
  97.          Charset         =   0
  98.          Weight          =   700
  99.          Underline       =   -1  'True
  100.          Italic          =   0   'False
  101.          Strikethrough   =   0   'False
  102.       EndProperty
  103.       Height          =   255
  104.       Left            =   240
  105.       TabIndex        =   0
  106.       Top             =   120
  107.       Width           =   2295
  108.    End
  109. Attribute VB_Name = "frmTwo"
  110. Attribute VB_GlobalNameSpace = False
  111. Attribute VB_Creatable = False
  112. Attribute VB_PredeclaredId = True
  113. Attribute VB_Exposed = False
  114. Option Explicit
  115. Dim xClass As clsXceed
  116. Dim ExitInc As Integer
  117. Public Function ShowForm(xObjects As clsXceed) As Integer
  118.     'This is where you will fill in the fields on your forms with the values
  119.     'in xObjects.
  120.     txtCreateNewCatalogsPath.Text = xObjects.xMain.CatalogFolder
  121.     Set xClass = xObjects
  122.         
  123.     Me.Show vbModal
  124.         
  125.     Set xClass = Nothing
  126.         
  127.     'At this point, the form is now hidden and ExitInc contains the increment.
  128.     'If ExitInc is not 0 then set xobjects to the field values.
  129.     If ExitInc <> 0 Then
  130.         xObjects.xMain.CatalogFolder = txtCreateNewCatalogsPath.Text
  131.     End If
  132.     ShowForm = ExitInc
  133. End Function
  134. Public Property Get Percent() As Integer
  135.     Percent = stbProgress.Value
  136. End Property
  137. Public Property Let Percent(Value As Integer)
  138.     stbProgress.Value = Value
  139.     Me.Refresh
  140. End Property
  141. Private Sub cmdBrowseBackupFolder_Click()
  142.     Dim sFolder As String
  143.     Dim bFolderSelected As Boolean
  144.     bFolderSelected = BrowseForFolder(sFolder, "", Me.hwnd)
  145.     If bFolderSelected Then
  146.         txtFindBackup.Text = sFolder
  147.     End If
  148. End Sub
  149. Private Sub cmdCancel_Click()
  150.     Dim Answer As VbMsgBoxResult
  151.     Answer = MsgBox("Your catalogs have not yet been recreated. Cancel anyway?", vbYesNo + vbQuestion)
  152.     If Answer = vbYes Then
  153.         Me.Hide
  154.     End If
  155.      
  156. End Sub
  157. Private Sub cmdChooseCatFolder_Click()
  158.     Dim sFolder As String
  159.     Dim bFolderSelected As Boolean
  160.     bFolderSelected = BrowseForFolder(sFolder, "", Me.hwnd)
  161.     If bFolderSelected Then
  162.         txtCreateNewCatalogsPath.Text = sFolder
  163.     End If
  164. End Sub
  165. Private Sub cmdCreate_Click()
  166.     xClass.BackupFolder = txtFindBackup.Text
  167.     xClass.xMain.CatalogFolder = txtCreateNewCatalogsPath.Text
  168.     If xClass.RecreateCatalogs Then
  169.         ExitInc = 1
  170.     Else
  171.         ExitInc = 0
  172.     End If
  173.     Me.Hide
  174. End Sub
  175. Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
  176.     If UnloadMode <> vbFormCode Then
  177.         Cancel = True
  178.         Call cmdCancel_Click
  179.     End If
  180. End Sub
  181.